//: C09:Cpptime.cpp
// From Thinking in C++, 2nd Edition
// Available at http://www.BruceEckel.com
// (c) Bruce Eckel 1999
// Copyright notice in Copyright.txt
// Testing a simple time class
#include "Cpptime.h"
#include <iostream>
using namespace std;

int main()
{
    Time start;
    for (int i = 1; i < 1000; i++) {
        cout << i << ' ';
        if (i%10 == 0) cout << endl;
    }
    Time end;
    cout << endl;
    cout << "start = " << start.ascii();
    cout << "end = " << end.ascii();
    cout << "delta = " << end.delta(&start);
} ///:~
